package com.booklove.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 捐赠书信息
 * </p>
 *
 * @author author
 * @since 2024-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("donatebook")
@ApiModel(value = "Donatebook对象", description = "捐赠书信息")
public class DonatebookDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    /*
    捐赠信息
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "捐赠标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "捐赠发言")
    @TableField("recommend")
    private String recommend;


    @ApiModelProperty(value = "捐赠地点")
    private Integer addressId;

    /*
    书本本身信息
    除去书本的id和连接字段，其余信息均包含
     */

    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "内容描述")
    private String description;

    @ApiModelProperty(value = "书本的ISBN码")
    private String isbn;

    @ApiModelProperty(value = "内容描述")
    private String content;

    @ApiModelProperty(value = "书本标签（冗余中）")
    private String label;
}
